package com.woniuxy.oldmanapi.yvo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniuxy.oldmanapi.entity.Bed;
import com.woniuxy.oldmanapi.entity.Older;
import com.woniuxy.oldmanapi.xvo.OlderVo;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class ElectricityVo {
    private Integer id;
    private Integer buildingId;
    private Integer storeyId;
    private Integer roomId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date usebegintime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useendtime;
    //作为分担人数使用
    private Integer shareOlderId;
    private BigDecimal beginnums;
    private BigDecimal endnums;
    private BigDecimal totalnums;
    private BigDecimal unitprice;
    private BigDecimal totalmoney;
    private List<OlderVo> olders;
    private String electricityremark;
    private Integer electricitystatus;
    private Bed bed;
}
